package com.virgo.demo.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.common.entity.ListDataVo;
import com.virgo.demo.cms.domain.HelpCenterDo;
import com.virgo.demo.cms.domain.bo.HelpCenterBo;
import com.virgo.demo.cms.domain.vo.HelpCenterInfoVo;
import com.virgo.demo.cms.domain.vo.HelpCenterListVo;
import jakarta.servlet.http.HttpServletRequest;

public interface HelpCenterService extends IService<HelpCenterDo> {

	/**
	 * 根据code查找
	 * @param code String
	 * @return HelpCenterDo
	 */
	HelpCenterDo loadByCode(String code);

	/**
	 * 编辑帮助中心
	 * @param helpCenterBo HelpCenterBo
	 */
	void saveHelpCenter(HelpCenterBo helpCenterBo);

	/**
	 * 删除配置中心
	 * @param ids String
	 */
	void deleteHelpCenter(String ids);

	/**
	 * 帮助中心列表
	 * @param request HttpServletRequest
	 * @return ListDataVo<HelpCenterListVo>
	 */
	ListDataVo<HelpCenterListVo> findList(HttpServletRequest request);

    /**
     * 详情
     * @param id Long
     * @return HelpCenterInfoVo
     */
    HelpCenterInfoVo findInfo(Long id);
}